package com.suning.app.snpaasadmin.exception;

public class CloudFoundryApiException extends RuntimeException {

	/**
	 * 错误代码
	 */
	private Integer errCode;

	/**
	 * 描述
	 */
	private String errMsg;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CloudFoundryApiException(Integer errorCode, String description) {
		super();
		this.setErrCode(errorCode);
		if(description==null){
			this.setErrMsg("status error");
		}else{
			this.setErrMsg(description);
		}	
	}

    /**
     * @return the errCode
     */
    public Integer getErrCode() {
        return errCode;
    }

    /**
     * @param errCode the errCode to set
     */
    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    /**
     * @return the errMsg
     */
    public String getErrMsg() {
        return errMsg;
    }

    /**
     * @param errMsg the errMsg to set
     */
    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }


}
